       
       <div id="wrap-banner">    
            <div id="banner">
              <div class="cycle-slideshow" data-cycle-fx="fadeout" data-cycle-timeout="3000" data-cycle-pager=".banner-pager" data-cycle-pause-on-hover="true">
                <div class="cycle-pager"></div>
                  
<!-- Mulai Looping Banner -->  
				<?php foreach($banner as $item): ?>
	   		   

                    <img src="<?php echo grab_banner_image($item['image'])  ?>" /> 

				
				<?php endforeach ?>
                
<!-- Akhir Looping Banner -->                
                     
                
                </div>
              <div class="banner-pager"></div>
            </div>
        	<div class="clear"></div>
       </div>
        
       <div class="wrap-content">
          <ul class="list-product ">

<!-- Mulai Looping Product -->
			  <?php foreach($product as $item): ?>
	   		  
                <li>                   
                   <div class="wrap">
                        <a href="productdetail.php">
			    			<div class="icon-label">
                            	
                                <img src="<?php echo grab_label_image($item['label'])  ?>" />
                            
                            </div>
                            
                            <img src="<?php echo grab_thumbs_product($item['image_front'])  ?>" align="middle" class="prod-image"/>
                            <?php if($item['discount']>0): ?>
                            <div class="disc">20%</div>	
                            <?php endif; ?>
                            
                            <div class="desc">
                            
                                <h4><?php echo $item['title'] ?></h4>
                            
                                <div class="price">
                            		
                                	<?php echo grab_price($item['price'],$item['discount'])?>
                            		
                                </div>
                            
                                <div class="clear"></div>
                            </div>
                        </a>
                   </div>
                </li>
              
			  <?php endforeach ?>
<!-- Akhir Looping Product -->  
             
          </ul>
        </div>
       
       

